package com.cy.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cy.study.entity.ExperienceEntity;
import com.cy.study.req.ExperiencePageReq;
import com.cy.study.req.UserExperienceReq;
import com.cy.study.res.ExperiencePageRes;
import com.cy.study.res.UserCenterExperiencePageRes;
import com.cy.study.res.UserCenterPageExamRes;
import com.cy.study.res.UserExperiencePageRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface ExperienceMapper extends BaseMapper<ExperienceEntity> {

    Page<UserCenterExperiencePageRes> userCenterExperiencePage(@Param("userId") Integer userId,
                                                               Page page);

    Page<ExperiencePageRes> pageExperience(@Param("req") ExperiencePageReq req,
                                           Page page);

    Page<UserExperiencePageRes> userExperiencePageRes(@Param("req") UserExperienceReq req,
                                                      Page page);

}
